package com.inifitness.plugin.service;

import com.inifitness.plugin.model.vo.DetailInfo;
import com.inifitness.plugin.model.vo.FuzzyInfo;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;
import reactor.core.publisher.Mono;

/**
 * TODO: (Mageric 2024-04-21)
 *
 * @author sunjinfeng
 * @version 1.0.0
 * @since 2024-04-21 23:01
 */
@HttpExchange(accept = "application/json", contentType = "text/html; charset=utf-8")
public interface QyxxClient {

  @GetExchange("https://slycompany.market.alicloudapi.com/business2/get")
  Mono<DetailInfo> getDetailInfo(@RequestParam("keyword") String keyword);

  @GetExchange("https://slyqyxx.market.alicloudapi.com/business3/get")
  Mono<FuzzyInfo> getFuzzyInfo(@RequestParam("keyword") String keyword,
      @RequestParam("pageNo") Integer pageNo);
}
